Class OSPFAreaImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.OSPFAreaImpl
All Implemented Interfaces:
IPCObject, OSPFArea

public class OSPFAreaImpl extends IPCObjectImpl implements OSPFArea
Information provided by the PKI file:

    \class OspfArea
    
    \brief OspfArea handles and manipulates OSPF areas.
    
    \example network().getDevice("Router0").getProcess("OspfMainProcess").getOspfProcessAt(0).getAreaAt(0)
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getAreaId

      public IPAddress getAreaId()
      Information provided by the PKI file:
      
          \brief Returns the OSPF area ID.
          
          \param ip, the OSPF area ID.
          
              
      Specified by:
      getAreaId in interface OSPFArea
      Returns:
      IPAddress Returns a IPAddress
    • setAuthentication

      public void setAuthentication(OSPFAuthType type)
      Information provided by the PKI file:
      
          \brief Sets the OSPF authentication type.
          
          \param type,        the OSPF authentication type.
          Authentication types:       eNoAuth = 0,
          eAuth = 1,
          eMD5Auth = 2
          
              
      Specified by:
      setAuthentication in interface OSPFArea
      Parameters:
      type - Takes in a parameter of type
    • getAuthentication

      public OSPFAuthType getAuthentication()
      Information provided by the PKI file:
      
          \brief Returns the OSPF authentication type.
          
          \return OspfAuthType,       the OSPF authentication type.
          Authentication types:       eNoAuth = 0,
          eAuth = 1,
          eMD5Auth = 2
          
              
      Specified by:
      getAuthentication in interface OSPFArea
      Returns:
      OSPFAuthType Returns a OSPFAuthType
    • getConfiguredPortCount

      public int getConfiguredPortCount()
      Information provided by the PKI file:
      
          \brief Returns the number of configured ports.
          
          \return int, the number of configured ports.
          
              
      Specified by:
      getConfiguredPortCount in interface OSPFArea
      Returns:
      int Returns a int
    • getConfiguredNetworkCount

      public int getConfiguredNetworkCount()
      Information provided by the PKI file:
      
          \brief Returns the number of configured networks.
          
          \return int, the number of configured networks.
          
              
      Specified by:
      getConfiguredNetworkCount in interface OSPFArea
      Returns:
      int Returns a int
    • getConfiguredNetworkAt

      public Pair<IPAddress,IPAddress> getConfiguredNetworkAt(int index)
      Information provided by the PKI file:
      
          \brief Returns the network address and subnet mask at the specified index.
          
          \param index, the index of the network address and subnet mask of interest.
          
          \return pair<ip, ip>, the network address and subnet mask at the specified index.
          
              
      Specified by:
      getConfiguredNetworkAt in interface OSPFArea
      Parameters:
      index - Takes in a parameter of index
      Returns:
      Pair<IPAddress, IPAddress> Returns a Pair<IPAddress, IPAddress>
    • getNeighborTable

      public OSPFNeighborTable getNeighborTable(String portName)
      Information provided by the PKI file:
      
          \brief Returns the OSPF neighbor table of the specifed port.
          
          \param portName,    portName can be one of the following plus a port number where appropriate:
          Console, Aux, Ethernet, FastEthernet, GigabitEthernet,
          Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async.
          Example: FastEthernet0/0
          
          \return OspfNeighborTable, the OspfNeighborTable object of the specifed port.
          
              
      Specified by:
      getNeighborTable in interface OSPFArea
      Parameters:
      portName - Takes in a parameter of portName
      Returns:
      OSPFNeighborTable Returns a OSPFNeighborTable
    • getDatabase

      public OSPFDatabase getDatabase()
      Information provided by the PKI file:
      
          \brief Return the OSPF database.
          
          \return OspfDatabase, the OspfDatabase object.
          
              
      Specified by:
      getDatabase in interface OSPFArea
      Returns:
      OSPFDatabase Returns a OSPFDatabase
    • getFloodLength

      public int getFloodLength(String portName)
      Information provided by the PKI file:
      
          \brief Returns the flood length of the specified port.
          
          \param portName             portName can be one of the following plus a port number where appropriate:
          Console, Aux, Ethernet, FastEthernet, GigabitEthernet,
          Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async.
          Example: FastEthernet0/0
          
          \return int, the flood length of the specified port.
          
              
      Specified by:
      getFloodLength in interface OSPFArea
      Parameters:
      portName - Takes in a parameter of portName
      Returns:
      int Returns a int
    • getLastFloodLength

      public int getLastFloodLength(String portName)
      Information provided by the PKI file:
      
          \brief Returns the last flood length of the specified port.
          
          \param portName             portName can be one of the following plus a port number where appropriate:
          Console, Aux, Ethernet, FastEthernet, GigabitEthernet,
          Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async.
          Example: FastEthernet0/0
          
          \return int, the last flood length of the specified port.
          
              
      Specified by:
      getLastFloodLength in interface OSPFArea
      Parameters:
      portName - Takes in a parameter of portName
      Returns:
      int Returns a int
    • getLastFloodTime

      public int getLastFloodTime(String portName)
      Information provided by the PKI file:
      
          \brief Returns the last flood time of the specified port.
          
          \param portName             portName can be one of the following plus a port number where appropriate:
          Console, Aux, Ethernet, FastEthernet, GigabitEthernet,
          Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async.
          Example: FastEthernet0/0
          
          \return int, the last flood time of the specified port.
          
              
      Specified by:
      getLastFloodTime in interface OSPFArea
      Parameters:
      portName - Takes in a parameter of portName
      Returns:
      int Returns a int
    • getMaxFloodLength

      public int getMaxFloodLength(String portName)
      Information provided by the PKI file:
      
          \brief Returns the maximum flood length of the specified port.
          
          \param portName             portName can be one of the following plus a port number where appropriate:
          Console, Aux, Ethernet, FastEthernet, GigabitEthernet,
          Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async.
          Example: FastEthernet0/0
          
          \return int, the maximum flood length of the specified port.
          
              
      Specified by:
      getMaxFloodLength in interface OSPFArea
      Parameters:
      portName - Takes in a parameter of portName
      Returns:
      int Returns a int
    • getMaxFloodTime

      public int getMaxFloodTime(String portName)
      Information provided by the PKI file:
      
          \brief Returns the maximum flood time of the specified port.
          
          \param portName             portName can be one of the following plus a port number where appropriate:
          Console, Aux, Ethernet, FastEthernet, GigabitEthernet,
          Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async.
          Example: FastEthernet0/0
          
          \return int, the maximum flood time of the specified port.
          
              
      Specified by:
      getMaxFloodTime in interface OSPFArea
      Parameters:
      portName - Takes in a parameter of portName
      Returns:
      int Returns a int
    • getSpfCount

      public int getSpfCount()
      Information provided by the PKI file:
      
          \brief Returns the number of shortest paths.
          
          \return int, the number of shortest paths.
          
              
      Specified by:
      getSpfCount in interface OSPFArea
      Returns:
      int Returns a int